-- GENERATED SPELL FOR [Isillien] --


function spell0_20346(pUnit, Event) --@Heal,n/a--
pUnit:FullCastSpellOnTarget(35162,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20346', 557, 1)
end

function spell1_20346(pUnit, Event) --@Smite,n/a--
pUnit:FullCastSpellOnTarget(35155,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20346', 511, 1)
end

function Sorts_20346(pUnit, Event)
local choix_sorts_20346 = math.random(0, 1)
if choix_sorts_20346 == 0 then
pUnit:RegisterEvent('spell0_20346', 1, 1)
end
if choix_sorts_20346 == 1 then
pUnit:RegisterEvent('spell1_20346', 1, 1)
end
end

function mob20346_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20346', math.random(1500, 3000), 1)
end

function mob20346_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20346_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20346_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20346, 1, 'mob20346_Action')
RegisterUnitEvent(20346, 2, 'mob20346_Leave')
RegisterUnitEvent(20346, 3, 'mob20346_Kill')
RegisterUnitEvent(20346, 4, 'mob20346_Die')
